/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Clases;


import Persistencia.Estudiante;
import Persistencia.EvaluacionFinalLogros;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.ViewScoped;
import javax.faces.context.FacesContext;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import negocio.EstudianteInterface;
import negocio.SeguimientoTelefonicoInterface;

/**
 *
 * @author BATAQUERO
 */
@ManagedBean
@ViewScoped
public class FEvalFinalLogros implements Formato{
    private EvaluacionFinalLogros evaluacionFinalLogros = new EvaluacionFinalLogros();
    
    private EstudianteInterface estudianteInterface;
    private Estudiante estudiante;
    @ManagedProperty(value = "#{sessionBean}")
    private SessionBean sessionBean;  
    
    public FEvalFinalLogros(){
    }
    
    @PostConstruct
    public void InicializarVariables() {
        try {
            InitialContext ctx = new InitialContext();
            estudianteInterface = (EstudianteInterface) ctx.lookup("EstudianteEJB");     
        } catch (NamingException ex) {
            Logger.getLogger(FEvalFinalLogros.class.getName()).log(Level.SEVERE, null, ex);
        }

    }
    
    @Override
        public void ConsultarFormato(){
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.        
        }

        @Override
        public void DiligenciarFormato() {
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        }

        @Override
        public void AprobarFormato() {
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        }

        @Override
        public void EditarFormato() {
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        }
    
        private void inicializarControladores() {
        FacesContext context = FacesContext.getCurrentInstance();
        //pruebaJpaController = (PruebaJpaController) context.getELContext().getELResolver().getValue(context.getELContext(), null, "pruebaJpaController");
        //estudianteJpaController = (EstudianteJpaController) context.getELContext().getELResolver().getValue(context.getELContext(), null, "estudianteJpaController");
//        supervisorJpaController = (SupervisorJpaController) context.getELContext().getELResolver().getValue(context.getELContext(), null, "supervisorJpaController");
        //entidadJpaController = (EntidadJpaController) context.getELContext().getELResolver().getValue(context.getELContext(), null, "entidadJpaController");
        //supervisorEntidadJpaController = (SupervisorEntidadJpaController) context.getELContext().getELResolver().getValue(context.getELContext(), null, "supervisorEntidadJpaController");
        
    }

    public EvaluacionFinalLogros getEvaluacionFinalLogros() {
        return evaluacionFinalLogros;
    }

    public void setEvaluacionFinalLogros(EvaluacionFinalLogros evaluacionFinalLogros) {
        this.evaluacionFinalLogros = evaluacionFinalLogros;
    }

    public SessionBean getSessionBean() {
        return sessionBean;
    }

    public void setSessionBean(SessionBean sessionBean) {
        this.sessionBean = sessionBean;
    }

    public Estudiante getEstudiante() {
        return estudiante;
    }

    public void setEstudiante(Estudiante estudiante) {
        this.estudiante = estudiante;
    }
    
    
    
        
}
